FROM centos

RUN mkdir /root/server
RUN  curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
RUN sudo yum clean all
RUN sudo yum -y install nodejs
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
WORKDIR /root/server
RUN cnpm install
COPY . .

CMD ["npm","start"]



